
<div class='row-fluid'>
    <div class="col-sm-4 center-block login_block">
        <form class="form" action="<?php echo $this->here ?>" method="post">

            <?php
            $msg = $this->Session->flash();
            if ($msg) {
                ?>
                <div class="alert-danger text-center" style="padding: 8px; border-radius: 5px;"><?php echo $msg; ?></div>
                <?php
            }
            ?>

            <div class="row-fluid login_img">
                <?php echo $this->Html->image('core/memberz-mini.png'); ?>
            </div>

            <div class="row-fluid login_div">
                <div class="input_row">
                    <input type="text" name="username" placeholder="Username" class="form-control login_input input-xlarge" />
                </div>

                <div class="input_row">
                    <input type="password" name="password" placeholder="Password" class="form-control login_input input-xlarge" />
                </div>

                <div class="input_row" style="text-align: right;">
                    <input type="submit" class="btn btn-s-md btn-success" value="Login" />
                    <a href="<?php echo $this->Html->url(array('controller' => 'organisation', 'action' => 'forgot_password')); ?>" class="btn btn-primary" id="forgot_password_btn">Forgot Password</a>
                </div>
            </div>
        </form>
    </div>
    <div class="col-sm-4 signup_block">
        <div> Don't Have An Account?</div>
        <div class="input_row" style="margin-top: 20px;">
            <a href="<?php echo $this->Html->url(array('web' => true, 'prefix' => 'web', 'controller' => 'organisation', 'action' => 'register')); ?>" class="btn btn-large btn-primary login_input" style="font-size: 18px; font-weight: bold; width: 90%;">Sign Up</a>
        </div>
    </div>

    <div id="forgot_password_block" style="display: none;">
        <form action="<?php echo $this->Html->url(array('controller' => 'organisation', 'action' => 'forgot_password')); ?>" method="post">
            <p>Enter your email below and email you a password reset link</p>

            <div class="row-fluid">
                <input type="email" class="input-xlarge" required="" placeholder="Enter Email Address" name="forgot_password_email" id="forgot_password_email" />
            </div>
        </form>
    </div>
</div>

<?php echo $this->Html->script("app/views/organisations/login.js"); ?>